from flask import jsonify


def normalizeRes(res, success=True, message='msg'):
    return jsonify({
        'success': success,
        'error': not success,
        'unAuthorizedRequest': False,
        'message': message,
        'result': res
    })
